The function update_window_buttons shows or hides the title header after it
has finished updating the visibility of the various buttons. Unfortunately
this
conflicted with the hiding of the title done when going fullscreen.
This solves the problem and fixes the rendering of fullscreen applications by
using update_window_buttons to control the visibility of the box in the
fullscreen case.
if (priv->decorated &&
priv->client_decorated &&
+ !priv->fullscreen &&
priv->title_box != NULL)
{
gchar *layout_desc;
{
priv->fullscreen =
(event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) ? 1 : 0;
- if (priv->title_box)
- gtk_widget_set_visible (priv->title_box, !priv->fullscreen);
}
if (event->changed_mask & (GDK_WINDOW_STATE_FULLSCREEN | GDK_WINDOW_STATE_MAXIMIZED))